package com.qianbei.view;

import android.os.Bundle;
import android.text.TextUtils;
import android.widget.EditText;
import android.widget.TextView;

import com.qianbei.R;
import com.qianbei.common.base.BaseActivity;
import com.qianbei.common.base.MyApplication;
import com.qianbei.common.net.view.MsgAlert;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by gaoml on 2018/2/9.
 */

public class SetActivity extends BaseActivity {

    @Bind(R.id.et_input_price)
    EditText etInputPrice;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zan_reward_price);
        ButterKnife.bind(this);
        setTitle("设置功率");
    }

    @OnClick(R.id.et_input_ok)
    public void onViewClicked() {
      if( !TextUtils.isEmpty( etInputPrice.getText().toString())){
          int temp = Integer.parseInt( etInputPrice.getText().toString());
          MyApplication.setValue = temp;
          new MsgAlert().show("功率设置为"+ temp);
        }
        finish();
    }
}
